package com.wl.api.model.system;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * 渠道服务网点
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "security_channel_area_service_network")
@Builder
public class SecurityChannelAreaServiceNetwork implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/** 区域网点表 */
	@TableId(type = IdType.AUTO)
	private Integer id;
	
	/** 关联区域服务类型表 */
	@TableField(value = "service_id")
	private Integer serviceId;
	
	/** 发货地(目前默认英国) */
	@TableField(value = "area_id")
	private Integer areaId;

	/** 合作商ID */
	@TableField(value = "partner_id")
	private Integer partnerId;
	
	/** 网点名称 */
	private String name;

	/** 网点logo */
	private String logo;

	/** 网点地址 */
	private String address;

	/** 提供服务描述 */
	private String desc;

	/** 网点启用状态1:启用,0:停用 */
	private Integer status;

	/**  */
	@TableField(value = "update_time")
	private Date updateTime;

	/**  */
	@TableField(value = "update_user")
	private String updateUser;
	
	@TableField(value = "is_deleted")
	private Integer isDeleted;
	
	@TableField(value = "amount_st")
	private BigDecimal amountSt;
	
	@TableField(value = "amount_ed")
	private BigDecimal  amountEd;
	
	
	public SecurityChannelAreaServiceNetwork buildBtAmt(BigDecimal amountSt, BigDecimal amountEd) {
		this.amountSt = amountSt;
		this.amountEd = amountEd;
		return this;
	}

}
